package com.ecommerce.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 数据统计表
 *
 * @author wang
 * @TableName t_data_count
 */
@ApiModel(description = "数据统计表(TDataCount)实体类")
@Data
@TableName("t_data_count")
public class DataCount implements Serializable {
    @ApiModelProperty(hidden = true)
    private static final long serialVersionUID = 570543862472248651L;
    /**
     * 数据id
     */
    @ApiModelProperty("数据id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableId("id")
    private Long id;

    /**
     * 统计时间
     */
    @ApiModelProperty("统计时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date dataDate;

    /**
     * 访客数
     */
    @ApiModelProperty("访客数")
    private Integer uniqueVisitor;

    /**
     * 浏览量
     */
    @ApiModelProperty("浏览量")
    private Integer pageVisitor;

    /**
     * 访问商品数
     */
    @ApiModelProperty("访问商品数")
    private Integer goodVisitor;

}
